package com.chouren.goandroid.animate.effect;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;

/**
 * Created by lee on 2014/7/31.
 */
public class NewsPaperEffect extends BaseEffect{

	@Override
	protected void setAnimators(View view) {
		getAnimatorSet().playTogether(
                ObjectAnimator.ofFloat(view, "rotation", 1080,720,360,0).setDuration(duration),
                ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(duration*3/2),
                ObjectAnimator.ofFloat(view, "scaleX", 0.1f, 0.5f, 1).setDuration(duration),
                ObjectAnimator.ofFloat(view,"scaleY",0.1f,0.5f,1).setDuration(duration)

        );
	}
}
